<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?php echo C('SITE_INFO.name');?></title>
<script type="text/javascript" src="__PUBLIC__/scripts/jquery-1.7.2.min.js"></script>
<link href="__PUBLIC__/Catalog/css/common.css" rel="stylesheet" type="text/css" />

<link href="__PUBLIC__/js/raty/stylesheets/labs.css" media="screen" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="__PUBLIC__/js/raty/stylesheets/jquery.raty.css">
<script src="__PUBLIC__/js/raty/javascripts/jquery.js"></script>
<script src="__PUBLIC__/js/raty/javascripts/jquery.raty.js"></script>
<script src="__PUBLIC__/js/raty/javascripts/labs.js" type="text/javascript"></script>
<link href="__PUBLIC__/Catalog/css/ordersContent.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="main">
<div class="title">
         <div class="title1">
             <a href="<?php echo ($back); ?>" id="back"> < </a>交易评价
         </div>
   </div>
   <div class="jiaoyi">
	<?php if($atype == 1): ?>【销售】<?php else: ?>【购买】<?php endif; echo ($orderDetail["products_name"]); ?><br/>
	下单时间:<?php echo ($orderDetail["order_date_added"]); ?><br/>
	订单编号:<?php echo ($orderDetail["order_num"]); ?><br/>
	卖家用户：<?php echo ($showmember["name"]); ?>&nbsp;&nbsp;<?php echo ($showmember["tel"]); ?><br/>
	交易方式:<?php if($orderDetail['order_type'] == 1): ?>线下交易<?php else: ?>在线交易<?php endif; ?><br/>
	价格:<?php echo ($orderDetail["pay_price"]); ?><br/>
	</div>
	<div class="jiaoyi">
	为这次交易打分吧：
	<form action="<?php if($atype == 1): echo U('Order/sappraise'); else: echo U('Order/appraise'); endif; ?>" method="post" >
		<div id="targetKeep" class="star"></div>
		<div id="targetKeep-hint" class="star-text"></div>
		<br/>
		<textarea cols="30" rows="5" name="comment" style="border:1px solid #cecece"></textarea>
	    <input type="hidden" name="orderid" value="<?php echo ($orderDetail["order_id"]); ?>" />
	    <input type="hidden" name="atype" value="<?php echo ($atype); ?>" />
	    <input type="submit" name="tijiao" value="提交"/> 
	</form>
	</div>
</div>
<script>
$.fn.raty.defaults.path = '__PUBLIC__/js/raty/images';
$('#targetKeep').raty({
  score: 5,
  cancel     : false,
  target     : '#targetKeep-hint',
  targetKeep : true, 
});

$(function(){
    if('<?php echo ($msg); ?>'!='0'){
        alert('<?php echo ($msg); ?>');
    }
});

</script> 
<div class="index-foot">
    <div class="index-foot2">
            <ul>
              <li>
                  <dl>
                      <dd class="index-dds"><a href="<?php echo U('Index/index');?>"><img src="__PUBLIC__/Catalog/images/house.png" /></a></dd>
                      <dd><a href="<?php echo U('Index/index');?>">首页</a></dd>
                  </dl>
              </li>
              <li>
                  <dl>
                      <dd class="index-dds"><a href="<?php echo U('Products/index');?>"><img src="__PUBLIC__/Catalog/images/cate1.png" /></a></dd>
                      <dd><a href="<?php echo U('Products/index');?>">商品</a></dd>
                  </dl>
              </li>
              <li>
                  <dl>
                      <dd><a href="<?php echo U('Mproducts/publish');?>"><img src="__PUBLIC__/Catalog/images/jia.png"style=" width:50px; height:50px;" /></a></dd>
                  </dl>
              </li>
              <li>
                  <dl>
                      <dd class="index-dds"><a href="<?php echo U('Membership/leaveword');?>"><img src="__PUBLIC__/Catalog/images/<?php if($count > 0): ?>message-hot.png<?php else: ?>message.png<?php endif; ?>" /></a></dd>
                      <dd><a href="<?php echo U('Membership/leaveword');?>">信息</a></dd>
                  </dl>
              </li>
              <li>
                  <dl>
                      <dd class="index-dds"><a href="<?php echo U('Membership/index');?>?uid=<?php echo ($uid); ?>"><img src="__PUBLIC__/Catalog/images/men.png" /></a></dd>
                      <dd><a href="<?php echo U('Membership/index');?>?uid=<?php echo ($uid); ?>">我的</a></dd>
                  </dl>
              </li>
            </ul>       
    </div>
</div>
</body>
</html>